#pragma once
#include "ScrambledItem.h"

class Potion : public ScrambledItem {
protected:
	int m_power;
public:
	Potion(PotionType type, int power = 1);
	Potion(std::ifstream& file);
	~Potion();
	void render(float x, float y);
	void logDetails(TextLog& log) const;
	int getPower() const;
	void shatter(int x, int y);
	bool specialEqual(Item* item) const;
	void save(std::ofstream& file) const;
};

inline int Potion::getPower() const {return m_power;}
inline bool Potion::specialEqual(Item* item) const {return ((Potion*)item)->getPower() == m_power;}
